<%--
  Created by IntelliJ IDEA.
  User: jcl
  Date: 2020/7/16
  Time: 15:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>企业税收管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=10,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/lib/layui/layui/css/layui.css"/>
    <script type="text/javascript" src="/lib/layui/layui/layui.js"></script>
    <script type="text/javascript" src="/lib/layui/layui/layui.all.js"></script>
    <script type="text/javascript" src="/js/news/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="/lib/jquery-2.1.4.min.js"></script>
    <script src="../js/sys/citys.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/base/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/sys/citys.js" type="text/javascript" charset="utf-8"></script>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        /*刷新，标题*/
        .bigger{
            height: 38px;
        }
        .bigger > h1 {
            color: #009688;
            font-size: 26px;
            font-weight: 500;
            display: inline-block;
        }
        .bigger button{
            float: right;
            margin-top: 5px;
        }
        .add{
            margin-left: 20px;
        }
        .title > input {
            height: 25px;
            width: 209px;
        }

        .title > span {
            text-align: center;
            line-height: 26px;
            margin-left: 10px;
        }
        .main {
            position: absolute;
            left: 50%;
            margin-left: -400px;
            margin-top: 15px;
            border: 1px solid #ccc;
            width: 800px;
            height: 320px
        }
        .layui-layer-setwin {
            display: none;
        }
    </style>
</head>
<body style="margin: 5px 15px 5px 15px;">
<%---标题--%>
<div class="bigger">
    <h1>企业税收管理</h1>
    <button type="button" class="layui-btn immp layui-btn-sm " style="margin-left: 10px" lay-event="import">
        <i class="layui-icon">&#xe601;</i>导入
    </button>
    <button type="button" class="layui-btn layui-btn-sm add"><i class="layui-icon layui-icon-addition"></i>新建</button>
</div>
<%--查询--%>
<div class="title">
</div>
<%--数据表--%>
<table class="layui-hide" id="test" lay-filter="test"></table>
<%--操作--%>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="detail">查看</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="del">删除</a>
</script>
</body>
<script>
    layui.use(['table', 'form', 'layedit', 'laydate'], function () {
        var table = layui.table;
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;
        var tableInt = table.render({
            elem: '#test'
            , url: '/construingunit/selectAllConstruingUnit'
            , page: true
            , parseData: function (res) { //res 即为原始返回的数据
                return {
                    "code": 0, //解析接口状态
                    "data": res.obj,//解析数据列表
                    "count": res.totleNum, //解析数据长度
                };
            }
            , cols: [[
                {field: 'cuName', title: '建设单位名称', align: 'center'}
                // , {field: 'cuCode', title: '建设单位社会信用代码', align: 'center'}
                , {field: 'projectName', title: '工程名称', align: 'center'}
                , {field: 'constructionAddress', title: '建设地址', align: 'center'}
                , {field: 'amount', title: '合同金额', align: 'center'}
                , {field: 'commencementDate', title: '开工日期', align: 'center'}
                , {field: 'completionDate', title: '竣工日期', align: 'center'}
                , {field: 'constructionUnitName', title: '施工单位名称', align: 'center'}
                , {title: '操作', align: 'center', toolbar: '#barDemo'}
            ]]
        });

        //新建
        $('.add').click(function () {
            creat(0)
        });

        /*新建和编辑的方法*/
        function creat(type, cuId) {
            if (type == '0') {
                var title = '新建';
            } else {
                var title = '编辑';
            }

            layer.open({
                type: 1,
                title: title,
                btn: ['确定','返回'],
                shade: 0.5,
                maxmin: true, //开启最大化最小化按钮
                area: ['100%', '100%'],
                content:'<form  class="layui-form" id="ajaxforms" lay-filter="formTest">' +
                    '<div class="layui-form" >\n' +
                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">建设单位名称:</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="cuName" autocomplete="off"  class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">建设单位社会信用代码：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="cuCode" autocomplete="off"   class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  </div>\n' +

                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">工程名称：</label>\n' +
                    '    <div style="display: ;width: 60%">\n' +
                    '      <input type="text" name="projectName"  autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">建设地址：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="constructionAddress"    autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  </div>\n' +

                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">合同金额：</label>\n' +
                    '    <div style="display: ;width: 60%">\n' +
                    '      <input type="text" name="amount"  autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">开工日期：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="commencementDate" id="date" autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  </div>\n' +
                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">竣工日期：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text"  name="completionDate" autocomplete="off" id="date1" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">施工单位名称：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text"  name="constructionUnitName" autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  </div>\n' +

                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">施工单位信用代码：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text"  name="constructionUnitCode"   autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">施工单位属地：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="constructionUnitPossession" autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  </div>\n' +
                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">报送单位：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="reportingUnit"  autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">是否在区内开设分公司：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '     <select id="branchOffice"  name="branchOffice" lay-filter="">\n' +
                    '        <option value="0">是</option>\n' +
                    '        <option value="1">否</option>\n' +
                    '      </select>\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  </div>\n' +
                    '<div style="display: flex;margin-top:15px;justify-content: center">' +
                    '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                    '    <label class="layui-form-label" style="width: 26%;text-align: right">备注：</label>\n' +
                    '    <div style="display: inline-block;width: 60%">\n' +
                    '      <input type="text" name="remark"  autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                    '    </div>\n' +
                    '  </div>\n' +
                    '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                    '  </div>\n' +
                    '  </div>\n' +
                    '  </div>' +
                    '</form>',
                success:function (res) {
                    res.find('.layui-layer-btn').css(
                        {'position': 'fixed','top':'-8px','right':'0'}
                    )
                    //日期
                    laydate.render({
                        elem: '#date'
                        , trigger: 'click'//呼出事件改成click
                    });
                    laydate.render({
                        elem: '#date1'
                        , trigger: 'click'//呼出事件改成click
                    });
                    form.render();
                    //修改回显
                    if(type==1){
                        $.ajax({
                            url:'/construingunit/selectAllConstruingUnit',
                            dataType: 'json',
                            type: 'get',
                            data:{
                                cuId:cuId
                            },
                            success:function (res) {
                                form.val("formTest", res.obj[0]);
                                if (res.obj[0].branchOffice == "是") {
                                    $("#branchOffice").val(0)
                                } else {
                                    $("#branchOffice").val(1)
                                }
                                form.render('select');
                            }

                        })
                    }
                },
                yes:function (index) {
                    var obj = {}
                    if(type == 0){
                        var url = '/construingunit/insertAllConstruingUnit'
                    }else{
                        var url = '/construingunit/updateAllConstruingUnit'
                        obj.cuId = cuId
                    }
                    obj.cuName = $('input[name="cuName"]').val()
                    obj.cuCode = $('input[name="cuCode"]').val()
                    obj.projectName = $('input[name="projectName"]').val()
                    obj.constructionAddress = $('input[name="constructionAddress"]').val()
                    obj.amount = $('input[name="amount"]').val()
                    obj.commencementDate = $('input[name="commencementDate"]').val()
                    obj.completionDate = $('input[name="completionDate"]').val()
                    obj.constructionUnitName = $('input[name="constructionUnitName"]').val()
                    obj.constructionUnitCode = $('input[name="constructionUnitCode"]').val()
                    obj.constructionUnitPossession = $('input[name="constructionUnitPossession"]').val()
                    obj.branchOffice = $('select[name="branchOffice"]').val()
                    obj.remark = $('input[name="remark"]').val()
                    obj.reportingUnit = $('input[name="reportingUnit"]').val()
                    $.ajax({
                        url: url,
                        dataType: 'json',
                        type: 'get',
                        data: obj,
                        success: function (res) {
                            if (res.flag) {
                                layer.msg('操作成功！', {icon: 1});
                                tableInt.reload()
                                layer.closeAll();
                            }
                        }
                    })
                }
            })
        }

        //监听行工具事件
        table.on('tool(test)', function(obj){
            var data = obj.data;
            var cuId = data.cuId
            if(obj.event === 'edit'){
                creat(1,cuId)
            }else if(obj.event === 'del'){
                layer.confirm('真的删除当前数据吗？', function (index) {
                    $.ajax({
                        type: 'get',
                        url: '/construingunit/deleteAllConstruingUnit?cuId='+cuId,
                        dataType: 'json',
                        success: function (res) {
                            if (res.msg == 'OK') {
                                layer.msg('删除成功！', {icon: 1});
                                tableInt.reload()
                                layer.closeAll();
                            }
                        }
                    })
                });
            }else if(obj.event == 'detail'){
                layer.open({
                    type: 1 //Page层类型
                    , area: ['100%', '100%']
                    , title: '企业纳税信息设置-详情'
                    , offset: 't'
                    , content:
                        '<form  class="layui-form" id="ajaxforms" lay-filter="formTest">' +
                        '<div class="layui-form" >\n' +
                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">建设单位名称:</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="cuName" autocomplete="off"  disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">建设单位社会信用代码：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="cuCode" autocomplete="off"  disabled class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  </div>\n' +

                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">工程名称：</label>\n' +
                        '    <div style="display: ;width: 60%">\n' +
                        '      <input type="text" name="projectName"  autocomplete="off"  disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">建设地址：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="constructionAddress"  disabled   autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  </div>\n' +

                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">合同金额：</label>\n' +
                        '    <div style="display: ;width: 60%">\n' +
                        '      <input type="text" name="amount"  autocomplete="off" disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">开工日期：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="commencementDate" id="date" disabled  autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  </div>\n' +
                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">竣工日期：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text"  name="completionDate" autocomplete="off" id="date1" disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">施工单位名称：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text"  name="constructionUnitName" autocomplete="off"  disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  </div>\n' +

                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">施工单位信用代码：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text"  name="constructionUnitCode"  disabled autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">施工单位属地：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="constructionUnitPossession"  disabled  autocomplete="off" class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  </div>\n' +
                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">报送单位：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="reportingUnit"  autocomplete="off"  disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">是否在区内开设分公司：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="branchOffice"  autocomplete="off"  disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  </div>\n' +
                        '<div style="display: flex;margin-top:15px;justify-content: center">' +
                        '  <div class="layui-form-item"  style="display: flex;width: 45%">\n' +
                        '    <label class="layui-form-label" style="width: 26%;text-align: right">备注：</label>\n' +
                        '    <div style="display: inline-block;width: 60%">\n' +
                        '      <input type="text" name="remark"  autocomplete="off"  disabled  class="layui-input" placeholder="" value="">\n' +
                        '    </div>\n' +
                        '  </div>\n' +
                        '  <div class="layui-form-item" style="display:flex;width:45%">\n' +
                        '  </div>\n' +
                        '  </div>\n' +
                        '  </div>' +
                        '</form>'
                    , btn: ['返回']
                    , success: function (res) {
                        res.find('.layui-layer-btn').css(
                            {'position': 'fixed','top':'-8px','right':'0'}
                        )
                        form.val('formTest', data);
                    }
                    , yes: function (index, layero) {
                        layer.close(index)
                    }
                });
            }
        });

        //导入
        $('.immp').click(function () {
            var index = layer.open({
                type: 1 //Page层类型
                , area: ['100%', '100%']
                , title: '批量导入'
                , content: '<div class="layui-form " id="ids">' +
                    '<div class="main importTable">' +
                    '   <div class="layui-input-block" style="margin-left:0px">\n' +
                    '       <form class="form1" name="form1" id="uploadForm" method="post" action="/construingunit/uploadConstructingUnit" enctype="multipart/form-data">\n' +
                    '<div class="layui-form-item" style="width: 800px;border-bottom:1px solid #ccc;margin-bottom:0px">\n' +
                    '   <label style="padding: 15px 6px 15px 6px;width: 100px" class="layui-form-label">下载导入模板：</label>\n' +
                    '   <div style="padding: 15px;" style="display: inline-block;width: 70%;">\n' +
                    '     <a id="model" style="color: deepskyblue;cursor:pointer">建设单位信息导入模板</a>\n' +
                    '   </div>\n' +
                    '</div>\n' +
                    '<div class="layui-form-item" style="width: 800px;border-bottom:1px solid #ccc;">\n' +
                    '   <label style="padding: 15px 6px 15px 6px;width: 100px" class="layui-form-label">选择导入文件：</label>\n' +
                    '   <div style="padding: 15px" style="display: inline-block;width: 70%;">\n' +
                    '     <input style="width: auto" type="file" name="file" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>\n' +
                    '   </div>\n' +
                    ' </div>\n' +
                    ' <div style="width: 800px;border-bottom:1px solid #ccc;margin-bottom:0px">\n' +
                    '   <label style="padding: 30px 6px 15px 6px;width: 100px" class="layui-form-label">说明：</label>\n' +
                    '   <div style="display: inline-block;width: 70%">\n' +
                    '                    <p>1.请导入.xls文件或者.xlsx。</p>\n' +
                    '                    <p style="padding: 15px 0px 30px 0px">2.模版格式均为文本格式。</p>\n' +
                    '   </div>\n' +
                    ' </div>\n' +
                    ' <div style="margin-left:360px;padding: 15px";width: 800px;border: 1px solid #ccc;">\n' +
                    '      <input class="importBtn layui-btn layui-btn-normal" type="button" value="导入">\n' +
                    ' </div>\n' +
                    '   </form>\n' +
                    '  </div>\n' +
                    '</div>\n' +
                    '</div>'
                // , btn: [ '返回']
                , success: function () {
                    $('#model').click(function () {
                        window.location.href = encodeURI("/file/community/建设单位信息导入模板.xls");
                    });

                    $('.importBtn').click(function () {
                        var flag = CheckForm();
                        if (flag) {
                            layer.msg("<fmt:message code='down.th.2' />", {icon: 1});
                            $.upload($('#uploadForm'), function (res) {
                                if (res.flag) {
                                    layer.msg("成功导入" + res.totleNum + "条数据!", {icon: 1});
                                    layer.closeAll();
                                    tableInt.reload();
                                } else {
                                    if (res.msg == undefined) {
                                        res.msg = '导入失败！'
                                    }
                                    layer.msg(res.msg, {icon: 2});
                                }
                            });
                        }
                    });

                    function CheckForm() {
                        if (document.form1.file.value == "") {
                            layer.msg("<fmt:message code='user.th.selectImport' />！", {icon: 2});
                            return (false);
                        }

                        return (true);
                    }
                }

                , yes: function (index) {

                }
            })
        })

    });
</script>
</html>




